package com.beiyou.orderingsystemonweb.system.other;

import javax.servlet.*;
import java.io.IOException;

public class PostFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        //post请求会有乱码
        servletRequest.setCharacterEncoding("utf-8");
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
